import request from "../request"

export const LoginApi = (params: ILoginAip): Promise<IResponse<ILoginResponse>> => request.post("/admin/login", params)

export const LoginUserApi = (): Promise<IResponse<ILogUserInfo>> => request.get("/admin/info")

export const getUserListApi = (params?: IAdminListreq): Promise<IResponse<IUserListData>> => request.get("/admin/list", { params })

export const UpdateStatusApi = (params: Istatus): Promise<IResponse<any>> => request.post(`/admin/updateStatus/${params.id}?status=${params.status}`)




